package com.xjrsoft.module.customerTwo.EMP.t_electric_meter_sum.mapper;

import com.xjrsoft.module.customerTwo.EMP.t_electric_meter_sum.entity.TElectricMeterSum;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *  Mapper 接口
 *
 * @author dongxinhang
 * @since 2023-07-24
 */
public interface TElectricMeterSumMapper extends BaseMapper<TElectricMeterSum> {

    void insertTransition(@Param("start")String start, @Param("end")String end);


    List<TElectricMeterSum> selectElectricMeterSumList(@Param("start")String start, @Param("end")String end);

    int saveElectricMeterSum(@Param("list") List<TElectricMeterSum> list);

    /**
     * 删除电费中转表、汇总表、日度电费记录表数据
     * @param start
     * @param end
     */
    void deleteElectricSumData(@Param("start")String start, @Param("end")String end);

    /**
     * 删除月度电费记录数据
     * @param year
     * @param month
     */
    void deleteElectricityCostRecordsMonth(@Param("year")String year, @Param("month")String month);

    void insertElectricMeterSum(@Param("start")String start, @Param("end")String end);

}
